package net.pimpas.web.jsf.components.validators.regex.custom;

import net.pimpas.web.jsf.components.validators.regex.Regex;

public class CustomRegex implements Regex {
	
	private static final long serialVersionUID = -4210858045530880042L;
	private String regex;
	
	public CustomRegex(String r) {
		this.setRegex(r);
	}

	public String getName() {
		return "custom";
	}

	public String getRegex() {
		return this.regex;
	}

	public void setRegex(String regex) {
		this.regex = regex;
	}
}